#ifndef CSHORTCUTSETTING_H
#define CSHORTCUTSETTING_H

#include <QDialog>
#include <QKeySequenceEdit>

class CShortcutSetting : public QDialog
{
    Q_OBJECT
public:
    CShortcutSetting(QWidget *parent = nullptr);

    inline void SetScreenshotShortcut(const QKeySequence & key)
    {
        m_screenshotShortCut.setKeySequence(key);
    }

    inline QKeySequence ScreenShortcut()
    {
        return m_screenshotShortCut.keySequence();
    }

private:
    void Init();

private:
    QKeySequenceEdit m_screenshotShortCut;
};

#endif // CSHORTCUTSETTING_H
